Skip to content

Respect the HTTP_PROXY environment variable #235

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 4, 2025

Conversation

MarcelBochtler
Copy link
Contributor

While requests used to respect the HTTP_PROXY and HTTPS_PROXY environment, aiohttp does not do so by default 1. Trust the environment variables to enable the use of proxies.

While `requests` used to respect the HTTP_PROXY and HTTPS_PROXY
environment variables, `aiohttp` does not do so by default [1].
Trust the environment variables to enable the use of proxies.

[1]: https://docs.aiohttp.org/en/stable/client_advanced.html#proxy-support

Signed-off-by: Marcel Bochtler <marcel.bochtler@bosch.com>
Signed-off-by: Marcel Bochtler <marcel.bochtler@bosch.com>
Copy link
Member

@pombredanne pombredanne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I guess some tests could have been welcomed, but that would be tantamount to retest aiohttp.ClientSession, ... so we are good.

@pombredanne pombredanne merged commit 5910dcd into aboutcode-org:main Jul 4, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants